<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head lang="en">
    <meta charset="utf-8"/>
    <title>网上订餐</title>
    <link th:href="@{/project/css/public.css}" rel="stylesheet"/>
    <link th:href="@{/project/css/myorder.css}" rel="stylesheet"/>
</head>
<body>
<!------------------------------head------------------------------>
<div class="head ding" th:include="include::normal_headDiv2"></div>
<!------------------------------idea------------------------------>
<div class="address mt">
    <div class="wrapper clearfix">
        <a th:href="@{/index}" class="fl">首页</a>
        <span>/</span>
        <a class="on">餐饮评价</a>
    </div>
</div>

<!------------------------------Bott------------------------------>
<div class="Bott">
    <div class="wrapper clearfix">
        <div class="zuo fl" th:include="include::normal_left_menu"></div>
        <div class="you fl">
            <div class="my clearfix">
                <h2 class="fl">餐饮评价</h2>
            </div>
            <form class="dkuang" th:attr="action=@{/user/remark/save}" th:object="${order}" method="post">
                <input type="hidden" name="orderId" th:value="*{orderId}">
                <div class="word fl clearfix" style="width: 100%;">
                    <ul class="fl clearfix">
                        <li th:text="*{'订单编号：'+orderId}"></li>
                        <li th:text="*{'下单时间：'+createTime}"></li>
                    </ul>
                </div>
                <table style="width: 100%">
                    <tr th:each="detail,indexStatus:*{details}">
                        <th width="40%" class="items">
                            <div class="shohou clearfix" >
                                <input type="hidden" name="goodsId" th:value="${detail.goodsId}">
                                <a class="fl"><img th:src="${detail.imgUrl}"></a>
                                <span class="leave_out2 fl" th:text="${detail.goodsName}"></span>
                            </div>
                        </th>
                        <th width="20%">
                            <div class="star_div" data-score="5"></div>
                        </th>
                        <th width="40%">
                            <textarea class="remark_area" name="msg" cols="35" rows="4"></textarea>
                        </th>
                    </tr>
                </table>
                <button type="submit" class="fr" style="background: #A10000;color: #FFFFFF;padding: 10px 30px;">提交评价</button>
            </form>
        </div>
    </div>
</div>
<div th:include="include::normal_footerDiv"></div>
<div th:include="include::footer_normal"></div>
<script th:inline="javascript">
    $(".star_div").raty({
        score: function () {
            return $(this).data('score');
        }
    });
</script>
</body>
</html>
